package com.situ.project1.mapper;

import com.situ.project1.pojo.Car;
import com.situ.project1.pojo.search.CarSearchModel;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author:yzy
 * @date:2024/8/10
 */
@Mapper
public interface CarMapper {
    List<Car> findAll(CarSearchModel car);

    boolean add(Car car);

    boolean update(Car car);

    boolean delete(Integer[] ids);

    boolean updateOrderCount();

    List<Car> findRest();

    List<Car> findRestCar(LocalDateTime startTime, LocalDateTime endTime);
    boolean finishModel(String model);
}
